package com.hzncc.flowable_diboot.service;

import com.diboot.core.vo.Pagination;
import com.hzncc.flowable_diboot.entity.DailyReport;
import com.hzncc.flowable_diboot.vo.AchievementVO;
import com.hzncc.flowable_diboot.vo.SalesBriefingVO;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

public interface IReportService {

    /**
     * 查询业绩指标
     * @param type
     * @return
     */
    AchievementVO getAchievement(String type);

    SalesBriefingVO getSalesBriefing(String type);
    List<DailyReport> dailyReport(LocalDate begin, LocalDate end, String name, Pagination pagination);
    List<DailyReport> checkInReport(LocalDate begin, LocalDate end,String name,Pagination pagination);

    /**
     * 发送机器人消息
     *
     * @author 陈广煜
     * @date 2024/7/10
     */
    void sendRobotMsg(Object type) throws Exception;

    List<DailyReport> statisticalReport(LocalDate begin, LocalDate end, String name, Pagination pagination);

    void sendRobotExcelMsg(String type) throws Exception;

    List<Map<String, Object>> salesTrends(String type);

    Object salesFunnels(String type);
}
